package com.sc.pojo;

import java.io.Serializable;

public class ExamSheet implements Serializable {
    private Integer id;

    private Integer userid;

    private Long examid;

    private Integer topicid;

    private String result;

    private Integer score;
    private Title title;

    public Title getTitle() {
        return title;
    }

    public void setTitle(Title title) {
        this.title = title;
    }

    private static final long serialVersionUID = 1L;

    public ExamSheet() {
    }

    public ExamSheet(Integer id, Integer userid, Long examid, Integer topicid, String result, Integer score) {
        this.id = id;
        this.userid = userid;
        this.examid = examid;
        this.topicid = topicid;
        this.result = result;
        this.score = score;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Long getExamid() {
        return examid;
    }

    public void setExamid(Long examid) {
        this.examid = examid;
    }

    public Integer getTopicid() {
        return topicid;
    }

    public void setTopicid(Integer topicid) {
        this.topicid = topicid;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result == null ? null : result.trim();
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userid=").append(userid);
        sb.append(", examid=").append(examid);
        sb.append(", topicid=").append(topicid);
        sb.append(", result=").append(result);
        sb.append(", score=").append(score);
        sb.append("]");
        return sb.toString();
    }
}